module.exports = {
    DBpathOnLine: "mongodb://acjing:wj141274@127.0.0.1:27017/myshop?authSource=admin",
    DBpathLocal: "mongodb://127.0.0.1:27017/myshop",
    ServerUrl: "https://www.adkang.cn",
    saltRounds: 10,
    SecretKey: "secret",
    expiresIn: 3600,
    CtxBody: (ctx, code, data) => {
        let msg = ""
        switch (code) {
            case 200:
                msg = "获取成功"
                break;
            case 202:
                msg = "添加成功"
                break;
            case 204:
                msg = "更新成功"
                break;
            case 304:
                msg = "更新失败"
                break;
            case 302:
                msg = "添加失败"
                break;
            case 30003:
                msg = "缺少参数"
                break;
            case 202:
                msg = "添加成功"
                break;
            case 401:
                msg = "认证失败"
                break;
            case 404:
                msg = "获取失败"
                break;
            case 402:
                msg = "数据已存在"
                break;
            case 30001:
                msg = "无法禁用自己"
                break;
            default:
                break;
        }
        ctx.body = {
            code,
            msg,
            data
        }
        
    },

    PageSize: 10,
    APPID:"wxf3102c8e030e3072",
    SECRET_KEY:"93879bf4ff31be76a59a4e7c9315556c",
    ShopNum: "1483917752",
    ShopKey: "gs2017ws138xkdadk760wj02tbydmyfc"
}